#define _CRT_SECURE_NO_WARNINGS 1
//用函数实现打印乘法口诀表
#include<stdio.h>
void Print_mul_table(int num)
{
	int i = 0;
	int j = 0;
	for (i = 1; i <= num; i++)
	{
		for (j = 1; j <= i; j++)
		{
			printf("%2d*%2d=%2d", j,i,i*j);
		}
		printf("\n");
	}
}
int main()
{
	int num = 0;
	scanf("%d", &num);
	Print_mul_table(num);
	return 0;
}